package ee.nlp.evn.entities;

import java.util.HashMap;

public class PositionAnnotation {

	private long start = -1;

	private long end = -1;

	private String content = null;

	private HashMap<String, String> features = null;

	public PositionAnnotation(String content) {
		this.content = content;
	}

	public long getStart() {
		return start;
	}

	public void setStart(long start) {
		this.start = start;
	}

	public long getEnd() {
		return end;
	}

	public void setEnd(long end) {
		this.end = end;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public HashMap<String, String> getFeatures() {
		return features;
	}

	public void setFeatures(HashMap<String, String> features) {
		this.features = features;
	}

	public String toString() {
		String result = content + " [" + String.valueOf(getStart()) + "-"
				+ String.valueOf(getEnd()) + "]";
		if (features != null) {
			for (String k : features.keySet()) {
				result = result + "; " + k + ":" + features.get(k);
			}
		}
		return result;
	}

}
